package com.dainel.mybatis.demo;

import com.gitee.sunchenbin.mybatis.actable.EnableMyBatisActable;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan
@SpringBootApplication

/**
 * 添加 @EnableMyBatisActable 表示启用自动建表功能
 * 你可以通过 value 指定需要扫描的 包名，当扫描到 {@link com.baomidou.mybatisplus.annotation.TableName @TableName} 时
 * 或者扫描到 {@link com.gitee.sunchenbin.mybatis.actable.annotation.Table @Table } 时会自动根据设置创建表名
 */
@EnableMyBatisActable
public class Application extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(Application.class);
    }

}


